package arsmodeller.perspectives;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {
	public static final String ID = "arsmodeller.perspectives.Perspective";
	public static final String ID_TABS_FOLDER = "arsmodeller.perspectives.PerspectiveTabfolders";

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(true);
		IFolderLayout tabs = layout.createFolder(ID_TABS_FOLDER,
				IPageLayout.LEFT, 0.3f, editorArea);
		tabs.addView(IPageLayout.ID_OUTLINE);
		tabs.addView(IPageLayout.ID_PROP_SHEET);
	}
}